package com.aounhui.queue.service.impl;

import com.aounhui.queue.common.SendMessage;
import com.aounhui.queue.service.MessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author aounhui
 * @version 1.0
 * @date 2021/6/30 10:47
 * @description
 */
@Service
@Slf4j
public class MessageServiceImpl implements MessageService {

    @Autowired
    private SendMessage sendMessage;

    @Override
    public void sendMessage(String type, String content) {
        log.info("queue服务发送消息，消息类型{}，消息内容{}", type, content);
        sendMessage.sendMessage(type, content);
    }
}
